package com.lg.product.mapper;

import com.lg.product.entity.CategoryBrand;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 商品分类和品牌的中间表，两者是多对多关系 Mapper 接口
 * </p>
 *
 * @author song
 * @since 2020-07-22
 */
public interface CategoryBrandMapper extends BaseMapper<CategoryBrand> {
    @Select("DELETE from tb_category_brand WHERE brand_id=#{id}")
    Long deleteCategoryBrand(Long id);
}
